package com.lmc.forum.services;

import com.lmc.forum.model.User;
import org.springframework.stereotype.Service;

public interface IUserService {

//    注册
    void createNormalUser(User user);

    User selectUserByUsername(String username);

//    登录
    User login(String username,String password);

    User selectUserById(Long id);

    void addOneArticleCountById(Long id);

    void subOneArticleCountById (Long id);

    User selectById(Long Id);

    void modifyInfo(User user);

    void modifyPassword (Long id, String newPassword, String oldPassword);
}
